package eu.webmedia.recruitment.comics.user;

import org.springframework.security.core.context.SecurityContextHolder;

public class UserUtil {

	public static User getCurrentUser() {
		UserPrincipal principal = (UserPrincipal) SecurityContextHolder.getContext().getAuthentication().getPrincipal();
		
		return principal.getUser();
	}
}
